package com.itheima.health.config;

import com.itheima.health.utils.QiniuUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：zhang
 * @date ：Created in 2020/11/22
 * @description ：
 * @version: 1.0
 */
@Configuration
public class QiniuConfiguration {

    @ConfigurationProperties("qiniu")
    @Bean
    public QiniuUtils qiniuUtils() {
        return new QiniuUtils();
    }

}
